package xin.zhiyin.实体;

import jakarta.persistence.*;

@Entity
@Table(name = "book_chapter_content")
public class 书章节内容Entity {
    @Id  /*定义此属性为数据库的主键，一个实体里面必须有一个*/
    @Column(name = "id",nullable = false)  /*对应数据库的列名*/
    private Long id;
    @Column(name = "content")
    private String content;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
}
